import request from '/@/utils/request';

export function ActionLogApi() {
	return {
		view: (id: any) => {
			return request({
				url: `sys/log/action/view/${id}`,
				method: 'GET',
			});
		},
		delete: (id: any) => {
			return request({
				url: `sys/log/action/delete/${id}`,
				method: 'DELETE',
			});
		},
		search: (data: object) => {
			return request({
				url: 'sys/log/action/search',
				method: 'POST',
				data,
			});
		},
        search_own: (data: object) => {
            return request({
                url: 'sys/log/action/search/own',
                method: 'POST',
                data,
            });
        },
	};
}
